package springboot.quartz;

import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;
import org.springframework.scheduling.quartz.QuartzJobBean;

import java.time.LocalDateTime;

public class MyTask extends QuartzJobBean {

    @Override
    protected void executeInternal(JobExecutionContext jobExecutionContext) throws JobExecutionException {
       String id = jobExecutionContext.getJobDetail().getJobDataMap().getString("jiii");
        System.out.println(LocalDateTime.now().getSecond());
    }

}